/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.scene.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 路由管理Entity
 * @author dh
 * @version 2017-03-20
 */
public class SceneRouter extends DataEntity<SceneRouter> {
	
	private static final long serialVersionUID = 1L;
	private String routerStatus;		// 路由状态
	private String routerName;		// 路由名称
	private String networkId;		// 外部网络id
	private String projectId;		// 项目id
	private String tenantId;		// 租户id
	private String subnetName;
	private String cidr;

	public String getCidr() {
		return cidr;
	}

	public void setCidr(String cidr) {
		this.cidr = cidr;
	}

	public String getSubnetName() {
		return subnetName;
	}

	public void setSubnetName(String subnetName) {
		this.subnetName = subnetName;
	}

	public SceneRouter() {
		super();
	}

	public SceneRouter(String id){
		super(id);
	}

	@Length(min=0, max=64, message="路由状态长度必须介于 0 和 64 之间")
	public String getRouterStatus() {
		return routerStatus;
	}

	public void setRouterStatus(String routerStatus) {
		this.routerStatus = routerStatus;
	}
	
	@Length(min=0, max=64, message="路由名称长度必须介于 0 和 64 之间")
	public String getRouterName() {
		return routerName;
	}

	public void setRouterName(String routerName) {
		this.routerName = routerName;
	}
	
	@Length(min=0, max=64, message="外部网络id长度必须介于 0 和 64 之间")
	public String getNetworkId() {
		return networkId;
	}

	public void setNetworkId(String networkId) {
		this.networkId = networkId;
	}

	@Length(min=0, max=64, message="项目id长度必须介于 0 和 64 之间")
	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	@Length(min=0, max=64, message="租户id长度必须介于 0 和 64 之间")
	public String getTenantId() {
		return tenantId;
	}

	public void setTenantId(String tenantId) {
		this.tenantId = tenantId;
	}

}